package com.design.alex.mediator;

/**
 * @ClassName : MediatorPatternDemo
 * @Description : todo
 * @Author : Alex
 * @Date: 2020-02-19 15:25
 */
public class MediatorPatternDemo {
    public static void main(String[] args) {
        User robert = new User("Robert");
        User john = new User("John");

        robert.sendMessage("Hi! John.");
        john.sendMessage("Hello! Robert.");
    }
}
